import Layout from '@/views/layout/Layout'

const activity = {
  path: '/financialflow',
  component: Layout,
  name: 'financialflow',
  alwaysShow: true,
  meta: { title: 'financialflow', icon: 'financialflow' },
  children: [
    {
      path: 'runningAccount',//列表界面
      component: () => import('@/views/after-sale/financialflow/index'),
      name: 'runningAccount',
      meta: { title: 'runningAccount' }
    },
    {
      path: 'addFinancialflow',//新增财务---不显示在菜单栏上
      component: () => import('@/views/after-sale/financialflow/addFinancialflow'),
      name: 'addFinancialflow',
      hidden: true,
      meta: { title: 'addFinancialflow', }
    },
    {
      path: 'editFinancialflow',//编辑财务---不显示在菜单栏上
      component: () => import('@/views/after-sale/financialflow/addFinancialflow'),
      name: 'editFinancialflow',
      hidden: true,
      meta: { title: 'editFinancialflow', }
    },
    {
      path: 'fixedAssets',//固定资产
      component: () => import('@/views/after-sale/financialflow/fixedAssets'),
      name: 'fixedAssets',
      meta: { title: 'fixedAssets', }
    },
    {
      path: 'addAsset',//新增固定资产
      component: () => import('@/views/after-sale/financialflow/addAsset'),
      name: 'addAsset',
      hidden: true,
      meta: { title: 'addAsset', }
    },
    {
      path: 'editAsset',//编辑固定资产
      component: () => import('@/views/after-sale/financialflow/addAsset'),
      name: 'editAsset',
      hidden: true,
      meta: { title: 'editAsset', }
    },
    // 发票管理
    {
      path: 'invoiceManage',
      name: 'invoiceManage',
      component: () =>
        import('@/views/financial/invoiceManage/index'),
      meta: { title: 'financialInvoiceManage' },
      children: [
        // 采购发票管理
        {
          path: 'procurement',
          component: () =>
            import(
              '@/views/financial/invoiceManage/procurement/index'
              ),
          name: 'invoiceManageProcurement',
          meta: { title: 'invoiceManageProcurement' }
        },
        // 销售发票管理
        {
          path: 'sales',
          component: () =>
            import(
              '@/views/financial/invoiceManage/sales/index'
              ),
          name: 'invoiceManageSales',
          meta: { title: 'invoiceManageSales' }
        },
      ]
    },
    // 银行管理
    {
      path: 'bankManage',
      component: () =>
        import('@/views/financial/bankManage/index'),
      name: 'bankManage',
      meta: { title: 'bankManage' }
    },
    // 付款管理
    {
      path: 'paymentManage',
      name: 'paymentManage',
      component: () =>
        import('@/views/financial/paymentManage/index'),
      meta: { title: 'paymentManage' },
      children: [
        // 付款申请管理
        {
          path: 'paymentRequest',
          component: () =>
            import(
              '@/views/financial/paymentManage/paymentRequest/index'
              ),
          name: 'paymentManageRequest',
          meta: { title: 'paymentManageRequest' }
        },
        // 待付款管理
        {
          path: 'notPay',
          component: () =>
            import(
              '@/views/financial/paymentManage/notPay/index'
              ),
          name: 'paymentManageNotPay',
          meta: { title: 'paymentManageNotPay' }
        },
        //已付款管理
        {
          path: 'completePayment',
          component: () =>
            import(
              '@/views/financial/paymentManage/completePayment/index'
              ),
          name: 'paymentManageComplete',
          meta: { title: 'paymentManageComplete' }
        }
      ]
    },
    // 收款管理
    {
      path: 'creditManage',
      name: 'creditManage',
      component: () =>
        import('@/views/financial/creditManage/index'),
      meta: { title: 'creditManage' },
      children: [
        // 待收款管理
        {
          path: 'forCollection',
          component: () =>
            import(
              '@/views/financial/creditManage/forCollection/index'
              ),
          name: 'creditManageForCollection',
          meta: { title: 'creditManageForCollection' }
        },
        //已收款管理
        {
          path: 'completePayment',
          component: () =>
            import(
              '@/views/financial/creditManage/completePayment/index'
              ),
          name: 'creditManageComplete',
          meta: { title: 'creditManageComplete' }
        }
      ]
    }
  ]
}

export default activity
